package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_DepositPlatform", catalog="Id")
public class TcwDepositPlatform extends BaseEntity<TcwDepositPlatform> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Mid", nameJava="mid", typeDataBase="varchar")
	private String mid;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="CompanyVid", nameJava="companyVid", typeDataBase="varchar")
	private String companyVid;
	@YsField(nameDataBase="PlatformName", nameJava="platformName", typeDataBase="varchar")
	private String platformName;
	@YsField(nameDataBase="ApiCode", nameJava="apiCode", typeDataBase="varchar")
	private String apiCode;
	@YsField(nameDataBase="AuthorizationTonken", nameJava="authorizationTonken", typeDataBase="varchar")
	private String authorizationTonken;
	@YsField(nameDataBase="AuthorizationTime", nameJava="authorizationTime", typeDataBase="char")
	private String authorizationTime;
	@YsField(nameDataBase="UpdateCycle", nameJava="updateCycle", typeDataBase="decimal")
	private BigDecimal updateCycle;
	@YsField(nameDataBase="NextAuthorizationTime", nameJava="nextAuthorizationTime", typeDataBase="char")
	private String nextAuthorizationTime;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwDepositPlatform setId(Long id) {
		this.id = id;
		return this;
	}
	public String getMid() {
		return mid;
	}
	public TcwDepositPlatform setMid(String mid) {
		this.mid = mid;
		return this;
	}
	public String getCode() {
		return code;
	}
	public TcwDepositPlatform setCode(String code) {
		this.code = code;
		return this;
	}
	public String getName() {
		return name;
	}
	public TcwDepositPlatform setName(String name) {
		this.name = name;
		return this;
	}
	public String getCompanyVid() {
		return companyVid;
	}
	public TcwDepositPlatform setCompanyVid(String companyVid) {
		this.companyVid = companyVid;
		return this;
	}
	public String getPlatformName() {
		return platformName;
	}
	public TcwDepositPlatform setPlatformName(String platformName) {
		this.platformName = platformName;
		return this;
	}
	public String getApiCode() {
		return apiCode;
	}
	public TcwDepositPlatform setApiCode(String apiCode) {
		this.apiCode = apiCode;
		return this;
	}
	public String getAuthorizationTonken() {
		return authorizationTonken;
	}
	public TcwDepositPlatform setAuthorizationTonken(String authorizationTonken) {
		this.authorizationTonken = authorizationTonken;
		return this;
	}
	public String getAuthorizationTime() {
		return authorizationTime;
	}
	public TcwDepositPlatform setAuthorizationTime(String authorizationTime) {
		this.authorizationTime = authorizationTime;
		return this;
	}
	public BigDecimal getUpdateCycle() {
		return updateCycle;
	}
	public TcwDepositPlatform setUpdateCycle(BigDecimal updateCycle) {
		this.updateCycle = updateCycle;
		return this;
	}
	public String getNextAuthorizationTime() {
		return nextAuthorizationTime;
	}
	public TcwDepositPlatform setNextAuthorizationTime(String nextAuthorizationTime) {
		this.nextAuthorizationTime = nextAuthorizationTime;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwDepositPlatform setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwDepositPlatform setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwDepositPlatform setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwDepositPlatform tcwDepositPlatform(
		String mid,
		String code,
		String name,
		String companyVid,
		String platformName,
		String apiCode,
		String authorizationTonken,
		String authorizationTime,
		BigDecimal updateCycle,
		String nextAuthorizationTime,
		Integer status
			) {
		TcwDepositPlatform entity = new TcwDepositPlatform();
		entity.setMid(mid);
		entity.setCode(code);
		entity.setName(name);
		entity.setCompanyVid(companyVid);
		entity.setPlatformName(platformName);
		entity.setApiCode(apiCode);
		entity.setAuthorizationTonken(authorizationTonken);
		entity.setAuthorizationTime(authorizationTime);
		entity.setUpdateCycle(updateCycle);
		entity.setNextAuthorizationTime(nextAuthorizationTime);
		entity.setStatus(status);
		return entity;
	}
}